- document = @publication.document

- content_for :wide do
  .post
    .box
      %h2= document.title
    .body
      = document.body.html_safe
    - if can? :publications_moderator
      .box= link_to t('edit'), edit_documents_publication_path(@publication), :class => "btn"
    .box.light-gray
      = render :partial => 'shared/document_info', :locals => {:document => document }
    = render :partial => 'shared/comments', :locals => {:comments => @comments, :document => document}